package tc.crase.view;

import tc.crase.sys.XdbRoot;
import tc.crase.sys.XobjectEx;

public class Formatter {
	static public String shortFormat(XobjectEx xobj) {
		String result = xobj.getName();
		if (xobj.getDb() != XdbRoot.xdbsys.current) {
			result += " [" + xobj.getDb().getName() + "]";
		}
		
		return result;
	}
}
